package com.quanxiaoha.framework.common.exception;/**
 * @author Myj
 * @date 2025/8/9
 */

import lombok.Getter;
import lombok.Setter;

/**
 *@author: myj
 *@createtime: 2025-08-09
 *@description: 异常
 *@version: 1.0
 */
@Getter
@Setter
public class BizException extends RuntimeException{
    // 异常码
    private String errorCode;
    // 错误信息
    private String errorMessage;

    public BizException(BaseExceptionInterface baseExceptionInterface) {
        this.errorCode = baseExceptionInterface.getErrorCode();
        this.errorMessage = baseExceptionInterface.getErrorMessage();
    }
}
